// 获取全局应用程序实例对象
const app = getApp()

Page({
  data: {
    id:'',
    cleInfo:[]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    app.network.POST(
      'https://www.ausck.com/api/project',
      {
        params: {},
        success: function (res) {
          console.log(res.data.data)
          //拿到解密后的数据，进行代码逻辑  
          that.setData({
            cleInfo: res.data.data
          });
        },
        fail: function () {
          //失败后的逻辑  

        },
      })
    
  },
  radioChange:function(e){
    this.setData({
      id:e.detail.value
    })
  },
  toPlaceOrderTap:function(){
    wx.navigateTo({
      url: '/pages/place-order/place-order?id='+this.data.id
    })
  }
    
})